package com.rainliang.project.connect.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.servlet.ModelAndView;
/**
 * conn登录接口模型
 * @author rainer
 *
 */
public interface ConnectInterface {
	/**
	 * Connect登录回调接口
	 * @param request
	 * @param response
	 * @return
	 * @throws Exception 
	 */
	public ModelAndView login(HttpServletRequest request,HttpServletResponse response) throws Exception;
	/**
	 * 非第一次登录进入
	 * @param request
	 * @param response
	 * @param map
	 * @return
	 */
	public ModelAndView oldlogin(HttpServletRequest request,HttpServletResponse response, Map<String,Object> map)throws Exception;
	/**
	 * 第一次登录进入
	 * @param request
	 * @param response
	 * @param map
	 * @return
	 * @throws Exception 
	 */
	public ModelAndView newlogin(HttpServletRequest request,HttpServletResponse response, Map<String,Object> map) throws Exception;
	/**
	 * 关闭登录窗口用
	 * @param request
	 * @param response
	 * @return
	 */
	public ModelAndView close_div_login(HttpServletRequest request,HttpServletResponse response);
	/**
	 * 注册用 关闭登录窗口
	 * @param request
	 * @param response
	 * @return
	 */
	public ModelAndView close_div(HttpServletRequest request,HttpServletResponse response);
	/**
	 * 绑定已有用户
	 * @param request
	 * @param response
	 * @return
	 *//*
	public ModelAndView bindold(HttpServletRequest request,HttpServletResponse response);
	*//**
	 * 绑定新用户
	 * @param request
	 * @param response
	 * @return
	 *//*
	public ModelAndView bindnew(HttpServletRequest request,HttpServletResponse response);*/
}
